package com.red.star.wechat.data.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import javax.persistence.Id;
import java.util.Date;

/**
 * @author nofish.yan@gmail.com
 * @date 2018/8/21.
 * 按钮点击数据记录实体
 */
@Data
@Document(collection = "lg_button_view")
public class ButtonView {

    @Id
    private String id;

    /**
     * 商场编码
     */
    @Field(value = "c_mall_code")
    private String mallCode;

    /**
     * 商场编码
     */
    @Field(value = "oms_code")
    private String omsCode;

    /**
     * 粉丝ID
     */
    @Field(value = "fans_id")
    private Integer fansId;

    /**
     * 页面地址
     */
    @Field(value = "page")
    private String page;

    /**
     * 按钮
     */
    @Field(value = "button")
    private String button;

    /**
     * 按钮现实名称
     */
    @Field(value = "button_name")
    private String buttonName;

    /**
     * 时间(天)"yyyy-MM-dd"
     */
    @Field(value = "day")
    private String day;

    /**
     * 记录创建时间
     */
    @Field(value = "create_time")
    private Date createTime;

}
